package com.zhouyihe.weblog.admin.convert;

import com.zhouyihe.weblog.admin.model.vo.article.FindArticleDetailRspVO;
import com.zhouyihe.weblog.common.domain.dos.ArticleDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @ClassName ArticleDetailConvert
 * @author: 周益和
 * @qq: 1552951165
 * @date: 2024/6/5
 * @description:
 */
@Mapper
public interface ArticleDetailConvert {
    /**
     * 初始化 convert 实例
     */
    ArticleDetailConvert INSTANCE = Mappers.getMapper(ArticleDetailConvert.class);
    
    /**
     * 将 DO 转化为 VO
     * @param bean
     * @return
     */
    FindArticleDetailRspVO convertDO2VO(ArticleDO bean);
    
}
